<template>
  <div class="list-item" @click="itemClick">
    <img :src="info.image" alt="" />
    <div class="title">{{ info.title }}</div>
  </div>
</template>

<script>
export default {
  name: "HistoryList",
  props: {
    info: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  methods: {
    itemClick() {
      this.$router.push("/detail/" + this.info.iid);
    },
  },
};
</script>

<style scoped>
.list-item {
  height: 80px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-bottom: 1px solid #cccccc;
}
.list-item img {
  height: 80px;
  padding: 0 10px;
}
</style>
